package com.example.myfirst.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商品表(Goods)表实体类
 *
 * @author makejava
 * @since 2023-12-12 20:28:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("goods")
public class Goods extends Model<Goods> implements Serializable{
    //id
    @TableId(type = IdType.AUTO)
    private Integer goodsId;
    //商品名称
    private String goodsName;
    //商品图片
    private String goodsImg;
    //商品价格
    private Integer price;
    //商品数量
    private Integer count;
    //所属系列id
    private Integer categoryId;
}

